﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using BLGestionOrdenes;
using WcfOrdenServicio;

namespace ServiceLoader
{    
    /// <summary>
    /// System.Runtime.Serialization para "KnownType"
    /// System.ServiceModel para "ServiceBehavior"
    /// </summary>
    [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single,
                     IncludeExceptionDetailInFaults=true)]
    [KnownType(typeof(MenuAccesoCollection))]
    [KnownType(typeof(MenuAcceso))]
    [KnownType(typeof(LoginInfo))]    
    public class SalesOrderService : ISalesOrderService
    {

        #region ISalesOrderService Members

        private LoginInfo _loginInfo;
        public LoginInfo Authenticate(string lpLogin, string lpPassword)
        {
           return AuthenticationManager.Instance("Ordenes.cnf").Authenticate(lpLogin, lpPassword);           
        }

        public MenuAccesoCollection Authorize()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
